<?php
/**
 * @file
 * xenyo_sc_styling_article.features.inc
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function xenyo_sc_styling_article_ctools_plugin_api($module = NULL, $api = NULL) {
  if ($module == "field_group" && $api == "field_group") {
    return array("version" => "1");
  }
  if ($module == "path_breadcrumbs" && $api == "path_breadcrumbs") {
    return array("version" => "1");
  }
}

/**
 * Implements hook_views_api().
 */
function xenyo_sc_styling_article_views_api($module = NULL, $api = NULL) {
  return array("api" => "3.0");
}

/**
 * Implements hook_image_default_styles().
 */
function xenyo_sc_styling_article_image_default_styles() {
  $styles = array();

  // Exported image style: category_image.
  $styles['category_image'] = array(
    'label' => 'Category Image (72 x 72)',
    'effects' => array(
      83 => array(
        'name' => 'manualcrop_crop_and_scale',
        'data' => array(
          'width' => 72,
          'height' => 72,
          'upscale' => 0,
          'respectminimum' => 1,
          'onlyscaleifcrop' => 0,
          'style_name' => 'category_image',
        ),
        'weight' => 0,
      ),
    ),
  );

  // Exported image style: related_styling_article_thumbnail.
  $styles['related_styling_article_thumbnail'] = array(
    'label' => 'Related Styling Article Thumbnail',
    'effects' => array(
      81 => array(
        'name' => 'manualcrop_crop_and_scale',
        'data' => array(
          'width' => 188,
          'height' => 250,
          'upscale' => 0,
          'respectminimum' => 1,
          'onlyscaleifcrop' => 0,
          'style_name' => 'related_styling_article_thumbnail',
        ),
        'weight' => 0,
      ),
      82 => array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 188,
          'height' => 250,
        ),
        'weight' => 2,
      ),
    ),
  );

  // Exported image style: styling_article_image.
  $styles['styling_article_image'] = array(
    'label' => 'Styling Article Image (606 x 808)',
    'effects' => array(
      74 => array(
        'name' => 'manualcrop_crop_and_scale',
        'data' => array(
          'width' => 606,
          'height' => 808,
          'upscale' => 0,
          'respectminimum' => 1,
          'onlyscaleifcrop' => 0,
          'style_name' => 'styling_article_image',
        ),
        'weight' => 0,
      ),
      73 => array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 606,
          'height' => 808,
        ),
        'weight' => 1,
      ),
    ),
  );

  // Exported image style: styling_article_image_thumbnail.
  $styles['styling_article_image_thumbnail'] = array(
    'label' => 'Styling Article Image Thumbnail (350 x 466)',
    'effects' => array(
      77 => array(
        'name' => 'manualcrop_crop_and_scale',
        'data' => array(
          'width' => 350,
          'height' => 466,
          'upscale' => 0,
          'respectminimum' => 1,
          'onlyscaleifcrop' => 0,
          'style_name' => 'styling_article_image_thumbnail',
        ),
        'weight' => 0,
      ),
      78 => array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 350,
          'height' => 466,
        ),
        'weight' => 2,
      ),
    ),
  );

  // Exported image style: styling_item_image_small_thumbnail.
  $styles['styling_item_image_small_thumbnail'] = array(
    'label' => 'Styling Item Image Small Thumbnail (43 x 57)',
    'effects' => array(
      84 => array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 43,
          'height' => 57,
        ),
        'weight' => 1,
      ),
    ),
  );

  // Exported image style: styling_item_image_thumbnail.
  $styles['styling_item_image_thumbnail'] = array(
    'label' => 'Styling Item Image Thumbnail (90 x 120)',
    'effects' => array(
      79 => array(
        'name' => 'manualcrop_crop_and_scale',
        'data' => array(
          'width' => 90,
          'height' => 120,
          'upscale' => 0,
          'respectminimum' => 1,
          'onlyscaleifcrop' => 0,
          'style_name' => 'styling_item_image_thumbnail',
        ),
        'weight' => 0,
      ),
      80 => array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 90,
          'height' => 120,
        ),
        'weight' => 2,
      ),
    ),
  );

  // Exported image style: styling_item_listing_thumbnail.
  $styles['styling_item_listing_thumbnail'] = array(
    'label' => 'Styling Item Listing Thumbnail (224 x 298)',
    'effects' => array(
      85 => array(
        'name' => 'manualcrop_crop_and_scale',
        'data' => array(
          'width' => 224,
          'height' => 298,
          'upscale' => 0,
          'respectminimum' => 1,
          'onlyscaleifcrop' => 0,
          'style_name' => 'styling_item_listing_thumbnail',
        ),
        'weight' => 0,
      ),
    ),
  );

  return $styles;
}

/**
 * Implements hook_node_info().
 */
function xenyo_sc_styling_article_node_info() {
  $items = array(
    'xenyo_sc_styling_article' => array(
      'name' => t('Xenyo SC Styling Article'),
      'base' => 'node_content',
      'description' => t('Custom styling article content type for SCMedia websites.'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'xenyo_sc_styling_item' => array(
      'name' => t('Xenyo SC Styling Item'),
      'base' => 'node_content',
      'description' => t('Custom styling item content type for SCMedia websites.'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
  );
  drupal_alter('node_info', $items);
  return $items;
}
